﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Kokomo.PeInspector.Reflection
{
	class TypeItem : TypeMemberItem
	{
		public Type Type { get; private set; }
		public TypeKind Kind { get; private set; }

		public TypeItem(
			Type type,
			MemberViewInfo viewInfo
			)
			: base(type, viewInfo)
		{
			if (type == null) throw new ArgumentNullException("type");
			this.Type = type;
			this.Kind = type.Kind();
		}
	}
}
